	format	MS COFF
	extrn	___bb_appstub_appstub
	extrn	___bb_audio_audio
	extrn	___bb_bank_bank
	extrn	___bb_bankstream_bankstream
	extrn	___bb_basic_basic
	extrn	___bb_blitz_blitz
	extrn	___bb_bmploader_bmploader
	extrn	___bb_d3d7max2d_d3d7max2d
	extrn	___bb_d3d9max2d_d3d9max2d
	extrn	___bb_data_data
	extrn	___bb_directsoundaudio_directsoundaudio
	extrn	___bb_eventqueue_eventqueue
	extrn	___bb_freeaudioaudio_freeaudioaudio
	extrn	___bb_freejoy_freejoy
	extrn	___bb_freeprocess_freeprocess
	extrn	___bb_freetypefont_freetypefont
	extrn	___bb_glew_glew
	extrn	___bb_gnet_gnet
	extrn	___bb_jpgloader_jpgloader
	extrn	___bb_macos_macos
	extrn	___bb_map_map
	extrn	___bb_maxlua_maxlua
	extrn	___bb_maxml_maxml
	extrn	___bb_maxutil_maxutil
	extrn	___bb_oggloader_oggloader
	extrn	___bb_openalaudio_openalaudio
	extrn	___bb_pngloader_pngloader
	extrn	___bb_retro_retro
	extrn	___bb_tgaloader_tgaloader
	extrn	___bb_threads_threads
	extrn	___bb_timer_timer
	extrn	___bb_wavloader_wavloader
	extrn	_bbArrayNew
	extrn	_bbGCFree
	extrn	_bbNullObject
	extrn	_bbObjectClass
	extrn	_bbObjectCompare
	extrn	_bbObjectCtor
	extrn	_bbObjectFree
	extrn	_bbObjectNew
	extrn	_bbObjectRegisterType
	extrn	_bbObjectReserved
	extrn	_bbObjectSendMessage
	extrn	_bbObjectToString
	extrn	_bbOnDebugEnterScope
	extrn	_bbOnDebugEnterStm
	extrn	_bbOnDebugLeaveScope
	extrn	_bbStringFromChar
	extrn	_brl_blitz_ArrayBoundsError
	extrn	_brl_blitz_NullObjectError
	extrn	_brl_max2d_DrawText
	extrn	_brl_max2d_SetColor
	public	__bb_TMap_Create
	public	__bb_TMap_Delete
	public	__bb_TMap_Draw
	public	__bb_TMap_New
	public	__bb_main
	public	_bb_TMap
	section	"code" code
__bb_main:
	push	ebp
	mov	ebp,esp
	push	ebx
	cmp	dword [_62],0
	je	_63
	mov	eax,0
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_63:
	mov	dword [_62],1
	push	ebp
	push	_61
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	call	___bb_blitz_blitz
	call	___bb_appstub_appstub
	call	___bb_audio_audio
	call	___bb_bank_bank
	call	___bb_bankstream_bankstream
	call	___bb_basic_basic
	call	___bb_bmploader_bmploader
	call	___bb_d3d7max2d_d3d7max2d
	call	___bb_d3d9max2d_d3d9max2d
	call	___bb_data_data
	call	___bb_directsoundaudio_directsoundaudio
	call	___bb_eventqueue_eventqueue
	call	___bb_freeaudioaudio_freeaudioaudio
	call	___bb_freetypefont_freetypefont
	call	___bb_gnet_gnet
	call	___bb_jpgloader_jpgloader
	call	___bb_map_map
	call	___bb_maxlua_maxlua
	call	___bb_maxutil_maxutil
	call	___bb_oggloader_oggloader
	call	___bb_openalaudio_openalaudio
	call	___bb_pngloader_pngloader
	call	___bb_retro_retro
	call	___bb_tgaloader_tgaloader
	call	___bb_threads_threads
	call	___bb_timer_timer
	call	___bb_wavloader_wavloader
	call	___bb_freejoy_freejoy
	call	___bb_freeprocess_freeprocess
	call	___bb_glew_glew
	call	___bb_macos_macos
	call	___bb_maxml_maxml
	push	_bb_TMap
	call	_bbObjectRegisterType
	add	esp,4
	mov	ebx,0
	jmp	_48
_48:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_TMap_New:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	push	ebp
	push	_66
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	dword [ebp-4]
	call	_bbObjectCtor
	add	esp,4
	mov	eax,dword [ebp-4]
	mov	dword [eax],_bb_TMap
	push	100
	push	100
	push	2
	push	_64
	call	_bbArrayNew
	add	esp,16
	inc	dword [eax+4]
	mov	edx,dword [ebp-4]
	mov	dword [edx+8],eax
	mov	ebx,0
	jmp	_51
_51:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_TMap_Delete:
	push	ebp
	mov	ebp,esp
	mov	eax,dword [ebp+8]
_54:
	mov	eax,dword [eax+8]
	dec	dword [eax+4]
	jnz	_71
	push	eax
	call	_bbGCFree
	add	esp,4
_71:
	mov	eax,0
	jmp	_69
_69:
	mov	esp,ebp
	pop	ebp
	ret
__bb_TMap_Create:
	push	ebp
	mov	ebp,esp
	sub	esp,24
	push	ebx
	push	esi
	push	edi
	mov	dword [ebp-4],_bbNullObject
	mov	dword [ebp-8],0
	mov	dword [ebp-12],0
	mov	dword [ebp-16],0
	mov	dword [ebp-20],0
	mov	dword [ebp-24],0
	mov	eax,ebp
	push	eax
	push	_132
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_72
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	_bb_TMap
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebp-4],eax
	push	_75
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	dword [ebp-8],0
	mov	dword [ebp-8],0
	jmp	_77
_25:
	push	_78
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	dword [ebp-12],0
	mov	dword [ebp-12],0
	jmp	_80
_28:
	push	_81
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_83
	call	_brl_blitz_NullObjectError
_83:
	mov	esi,dword [ebx+8]
	mov	eax,dword [ebp-8]
	imul	eax,dword [esi+24]
	mov	edi,eax
	cmp	edi,dword [esi+20]
	jb	_86
	call	_brl_blitz_ArrayBoundsError
_86:
	mov	ebx,dword [ebp-12]
	cmp	ebx,dword [esi+24]
	jb	_88
	call	_brl_blitz_ArrayBoundsError
_88:
	mov	eax,esi
	mov	edx,edi
	add	edx,ebx
	shl	edx,2
	add	eax,edx
	mov	edx,dword [ebp-16]
	mov	dword [eax+28],edx
_26:
	add	dword [ebp-12],1
_80:
	cmp	dword [ebp-12],99
	jle	_28
_27:
_23:
	add	dword [ebp-8],1
_77:
	cmp	dword [ebp-8],99
	jle	_25
_24:
	push	_91
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	dword [ebp-8],0
	jmp	_92
_31:
	push	_93
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_95
	call	_brl_blitz_NullObjectError
_95:
	mov	esi,dword [ebx+8]
	mov	eax,dword [ebp-8]
	imul	eax,dword [esi+24]
	mov	edi,eax
	cmp	edi,dword [esi+20]
	jb	_98
	call	_brl_blitz_ArrayBoundsError
_98:
	mov	ebx,0
	cmp	ebx,dword [esi+24]
	jb	_100
	call	_brl_blitz_ArrayBoundsError
_100:
	mov	eax,esi
	mov	edx,edi
	add	edx,ebx
	shl	edx,2
	add	eax,edx
	mov	edx,dword [ebp-20]
	mov	dword [eax+28],edx
	push	_103
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_105
	call	_brl_blitz_NullObjectError
_105:
	mov	esi,dword [ebx+8]
	mov	eax,dword [ebp-8]
	imul	eax,dword [esi+24]
	mov	edi,eax
	cmp	edi,dword [esi+20]
	jb	_108
	call	_brl_blitz_ArrayBoundsError
_108:
	mov	ebx,99
	cmp	ebx,dword [esi+24]
	jb	_110
	call	_brl_blitz_ArrayBoundsError
_110:
	mov	eax,esi
	mov	edx,edi
	add	edx,ebx
	shl	edx,2
	add	eax,edx
	mov	edx,dword [ebp-20]
	mov	dword [eax+28],edx
	push	_112
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_114
	call	_brl_blitz_NullObjectError
_114:
	mov	esi,dword [ebx+8]
	mov	edi,0
	cmp	edi,dword [esi+20]
	jb	_117
	call	_brl_blitz_ArrayBoundsError
_117:
	mov	ebx,dword [ebp-8]
	cmp	ebx,dword [esi+24]
	jb	_119
	call	_brl_blitz_ArrayBoundsError
_119:
	mov	eax,esi
	mov	edx,edi
	add	edx,ebx
	shl	edx,2
	add	eax,edx
	mov	edx,dword [ebp-24]
	mov	dword [eax+28],edx
	push	_122
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_124
	call	_brl_blitz_NullObjectError
_124:
	mov	esi,dword [ebx+8]
	mov	eax,dword [esi+24]
	imul	eax,99
	mov	edi,eax
	cmp	edi,dword [esi+20]
	jb	_127
	call	_brl_blitz_ArrayBoundsError
_127:
	mov	ebx,dword [ebp-8]
	cmp	ebx,dword [esi+24]
	jb	_129
	call	_brl_blitz_ArrayBoundsError
_129:
	mov	eax,esi
	mov	edx,edi
	add	edx,ebx
	shl	edx,2
	add	eax,edx
	mov	edx,dword [ebp-24]
	mov	dword [eax+28],edx
_29:
	add	dword [ebp-8],1
_92:
	cmp	dword [ebp-8],99
	jle	_31
_30:
	push	_131
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	jmp	_56
_56:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_TMap_Draw:
	push	ebp
	mov	ebp,esp
	sub	esp,20
	push	ebx
	push	esi
	push	edi
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	mov	dword [ebp-8],0
	mov	dword [ebp-12],0
	mov	dword [ebp-16],0
	mov	eax,ebp
	push	eax
	push	_155
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_139
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	0
	push	255
	push	0
	call	_brl_max2d_SetColor
	add	esp,12
	push	_140
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	dword [ebp-8],0
	mov	dword [ebp-8],0
	jmp	_142
_34:
	push	_143
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	dword [ebp-12],0
	mov	dword [ebp-12],0
	jmp	_145
_37:
	push	_146
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_148
	call	_brl_blitz_NullObjectError
_148:
	mov	esi,dword [ebx+8]
	mov	eax,dword [ebp-8]
	imul	eax,dword [esi+24]
	mov	edi,eax
	cmp	edi,dword [esi+20]
	jb	_151
	call	_brl_blitz_ArrayBoundsError
_151:
	mov	ebx,dword [ebp-12]
	cmp	ebx,dword [esi+24]
	jb	_153
	call	_brl_blitz_ArrayBoundsError
_153:
	mov	eax,dword [ebp-12]
	imul	eax,dword [ebp-16]
	mov	dword [ebp+-20],eax
	fild	dword [ebp+-20]
	sub	esp,4
	fstp	dword [esp]
	mov	eax,dword [ebp-8]
	mov	dword [ebp+-20],eax
	fild	dword [ebp+-20]
	mov	eax,dword [ebp-16]
	mov	dword [ebp+-20],eax
	fild	dword [ebp+-20]
	fmul	dword [_182]
	fmulp	st1,st0
	sub	esp,4
	fstp	dword [esp]
	mov	eax,edi
	add	eax,ebx
	push	dword [esi+eax*4+28]
	call	_bbStringFromChar
	add	esp,4
	push	eax
	call	_brl_max2d_DrawText
	add	esp,12
_35:
	add	dword [ebp-12],1
_145:
	cmp	dword [ebp-12],99
	jle	_37
_36:
_32:
	add	dword [ebp-8],1
_142:
	cmp	dword [ebp-8],99
	jle	_34
_33:
	mov	ebx,0
	jmp	_59
_59:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
	section	"data" data writeable align 8
	align	4
_62:
	dd	0
_39:
	db	"TMap",0
	align	4
_61:
	dd	1
	dd	_39
	dd	0
_40:
	db	"map",0
_41:
	db	"[,]i",0
_42:
	db	"New",0
_43:
	db	"()i",0
_44:
	db	"Delete",0
_45:
	db	"Create",0
_46:
	db	"():TMap",0
_47:
	db	"Draw",0
	align	4
_38:
	dd	2
	dd	_39
	dd	3
	dd	_40
	dd	_41
	dd	8
	dd	6
	dd	_42
	dd	_43
	dd	16
	dd	6
	dd	_44
	dd	_43
	dd	20
	dd	7
	dd	_45
	dd	_46
	dd	48
	dd	6
	dd	_47
	dd	_43
	dd	52
	dd	0
	align	4
_bb_TMap:
	dd	_bbObjectClass
	dd	_bbObjectFree
	dd	_38
	dd	12
	dd	__bb_TMap_New
	dd	__bb_TMap_Delete
	dd	_bbObjectToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	__bb_TMap_Create
	dd	__bb_TMap_Draw
_67:
	db	"Self",0
_68:
	db	":TMap",0
	align	4
_66:
	dd	1
	dd	_42
	dd	2
	dd	_67
	dd	_68
	dd	-4
	dd	0
_64:
	db	"i",0
_133:
	db	"d",0
_134:
	db	"i",0
_135:
	db	"j",0
_136:
	db	"CODE_EARTH",0
_137:
	db	"CODE_WALLHOR",0
_138:
	db	"CODE_WALLVER",0
	align	4
_132:
	dd	1
	dd	_45
	dd	2
	dd	_133
	dd	_68
	dd	-4
	dd	2
	dd	_134
	dd	_134
	dd	-8
	dd	2
	dd	_135
	dd	_134
	dd	-12
	dd	2
	dd	_136
	dd	_134
	dd	-16
	dd	2
	dd	_137
	dd	_134
	dd	-20
	dd	2
	dd	_138
	dd	_134
	dd	-24
	dd	0
_73:
	db	"C:/Projects/Aferworld/TMap.bmx",0
	align	4
_72:
	dd	_73
	dd	7
	dd	3
	align	4
_75:
	dd	_73
	dd	9
	dd	3
	align	4
_78:
	dd	_73
	dd	10
	dd	4
	align	4
_81:
	dd	_73
	dd	11
	dd	5
	align	4
_91:
	dd	_73
	dd	16
	dd	3
	align	4
_93:
	dd	_73
	dd	17
	dd	4
	align	4
_103:
	dd	_73
	dd	18
	dd	4
	align	4
_112:
	dd	_73
	dd	19
	dd	4
	align	4
_122:
	dd	_73
	dd	20
	dd	4
	align	4
_131:
	dd	_73
	dd	22
	dd	3
_156:
	db	"FONT_SIZE",0
	align	4
_155:
	dd	1
	dd	_47
	dd	2
	dd	_67
	dd	_68
	dd	-4
	dd	2
	dd	_134
	dd	_134
	dd	-8
	dd	2
	dd	_135
	dd	_134
	dd	-12
	dd	2
	dd	_156
	dd	_134
	dd	-16
	dd	0
	align	4
_139:
	dd	_73
	dd	27
	dd	3
	align	4
_140:
	dd	_73
	dd	28
	dd	3
	align	4
_143:
	dd	_73
	dd	29
	dd	4
	align	4
_146:
	dd	_73
	dd	30
	dd	5
	align	4
_182:
	dd	0x3f000000
